{template "member","header"}

<!-- header -->
<header class="header bg7 clearfix" style=" position:relative">
	<h3 class="fl"><a href="{MEMBER_PATH}" title="高见"><img src="{IMG_PATH2}icon/guanbi.png" alt="高见"></a></h3>
	<span class="con">注册</span>
	<a href="{APP_PATH}index.php?m=member&c=index&a=login" class="btnRegister fr">登录</a>
</header>
<!-- / header -->

<img src="{IMG_PATH2}img/rebg.jpg" width="100%">

<!-- main -->
<main class="main">
	<!-- <ul class="nav_register tab clearfix">
		<li><a href="javascript:void(0);">邮箱注册</a></li>
		<li><a href="javascript:void(0);">手机注册</a></li>
	</ul> -->
	<div class="h_20"></div>
<!-- 
	<form action="" method="post" id="formLogin" class="tab_con margin2 form_email">
		<input type="hidden" name="reg_type" value="1">
		<input type="text" name="email" id="textemail" class="text1 bottom" placeholder="请填写真实邮箱">
			
		<input type="password" name="password" id="textmima" class="text1" placeholder="6~32位密码">
		<div class="getyqm">
			<div class="t1"><span>请填写邀请码</span></div>
			<input type="text" class="yqm" placeholder="用邀请码填写可获得30学分，如没有邀请码不用填写">			
		</div>
		<div class="h_20"></div>
		<input type="submit" value="完 成" class="btnSubmit1" name="dosubmit">
	</form>
 -->

	<div id="formLogin" class="tab_con margin2 form_mobile reg1">
		<input type="hidden" name="reg_type" value="2">
		<input type="text" id="textPhone" class="text1 bottom" placeholder="手机号">

		<div class="getyzm"><input type="text" id="textyzm" class="text1 bottom" placeholder="验证码"><img  title="点击刷新" src="api.php?op=code" class="getClick" align="absbottom" onclick="this.src='api.php?op=code&'+Math.random();">
		</div>

		<input type="password" id="textmima" class="text1" placeholder="6~32位密码">
		
		<div class="h_20"></div>
		<input type="submit" value="下一步" class="btnSubmit1" id="next">
	</div>
	<form action="" method="post" id="formLogin" class="tab_con margin2 form_mobile reg2" style="display:none">
		<input type="hidden" name="reg_type" value="2">
		<input type="hidden" name="mobile" id="mobile" class="text1 bottom" placeholder="手机号">

		<div class="getyzm"><input type="text" name="yzm" id="textyzm" class="text1 bottom" placeholder="手机验证码"><a href="javascript:void(0);" class="getClick js-yzm-mobile" data-type="reg">点击获取</a></div>

		<input type="hidden" name="password" id="password" class="text1" placeholder="6~32位密码">
		<?php if($code){?>
		<div class="getyqm">
			<div class="t1"><span>请填写邀请码</span></div>
			<input type="hidden" class="yqm" name="yqm" value="{$code}">	
			<input type="text" class="yqm" placeholder="用邀请码填写可获得5学分，如没有邀请码不用填写" value="{$code}" disabled="disabled">			
		</div>
		<?php }else{?>
		<div class="getyqm">
			<div class="t1"><span>请填写邀请码</span></div>
			<input type="text" class="yqm" name="yqm" placeholder="用邀请码填写可获得30学分，如没有邀请码不用填写" value="{$code}">			
		</div>
		<?php }?>
		<div class="h_20"></div>
		<input type="submit" value="完 成" class="btnSubmit1" name="dosubmit">
	</form>
<script type="text/javascript">
	$('#next').click(function(){
		var Phone=$(this).parent().find('#textPhone').val();
		var yzm=$(this).parent().find("#textyzm").val();
		var textmima=$(this).parent().find("#textmima").val();		
		$.post("?m=member&c=index&a=register&type=ajax",{mobile:Phone,code:yzm,password:textmima}, function(data){
		    if (data!='') {
		    	alert(data);
		    }else{
		    	$("#mobile").val(Phone);
				$("#password").val(textmima);
				$(".reg1").hide()
				$(".reg2").show()
		    }
		  
		})
	})
</script>
</main>
<!--main end-->

<script type="text/javascript" src="{JS_PATH2}member.gaojian.js"></script>

{template "member","footer"}